<?php
$this->headLink()->prependStylesheet('css/admin/style.css');
$this->headScript()->prependFile("js/jquery/jquery-1.5.min.js");

//Meniu accordion
$this->headLink()->appendStylesheet('css/admin/jquery.menu.accordion.css');
$this->headScript()->appendFile("js/admin/jquery.cookie.js");
$this->headScript()->appendFile("js/admin/jquery.menu.accordion.js");

//$this->headScript()->appendFile("js/admin/admin.js");


echo($this->doctype());
?>
<html>
<head>
	<base href="<?php echo APPLICATION_URL; ?>">
	<?php echo($this->headTitle()); ?>
	<?php echo($this->headMeta()); ?>

	<?php echo($this->headStyle()); ?>
	<?php echo($this->headLink()); ?>
	<?php echo($this->headScript()); ?>
</head>
<body>
<?php $this->userBox();?>
<div id="container">
	<span class="ltc">&nbsp;</span><span class="rtc">&nbsp;</span><span class="rbc">&nbsp;</span><span class="lbc">&nbsp;</span>
	<div id="header">
		<div id="logo"><a href="<?php echo $this->url(array('module' => 'index', 'controller' => 'admin'), null, true); ?>"><img src="media/images/admin/logo_paginafarmacistilor.jpg" alt="Pagina Farmacistilor" /></a></div>
		<div id="flash_messages">
			<?php foreach((array)$this->messages as $message) { ?>
					<div class="<?= $message['status']; ?>"><?= $this->translate($message['message']); ?></div>
			<?php } ?>
		</div>
	</div>
	<div id="left_menu">
		<ul id="menu1" class="menu expandfirst">
			<li>
				<a class="m10" href="#">Setari site</a>
				<ul>
					<?php if ( $this->isAllowed('staticPages:admin:index') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'index'), null, true); ?>">&raquo; Configurari generale</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Pagini statice</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Tari</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Judete</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Localitati</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Grade</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Titluri universitare</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Specializari</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Universitati</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Facultati</a></li><?php }?>
				</ul>
			</li>
			<li>
				<a class="m15" href="#">Continut</a>
				<ul>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'index'), null, true); ?>">&raquo; Blocuri</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Module</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Meniu</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Newsletter</a></li><?php }?>
				</ul>
			</li>
			<li>
				<a class="m20" href="#">Utilizatori</a>
				<ul>
					<?php if ( $this->isAllowed('users:admin:index') ){ ?><li><a href="<?php echo $this->url(array('module' => 'users', 'controller' => 'admin', 'action' => 'index'), null, true); ?>">&raquo; Utilizatori</a></li><?php }?>
					<?php if ( $this->isAllowed('users:admin:roles') ){ ?><li><a href="<?php echo $this->url(array('module' => 'users', 'controller' => 'admin', 'action' => 'roles'), null, true); ?>">&raquo; ACL Roluri</a></li><?php }?>
					<?php if ( $this->isAllowed('users:admin:rights') ){ ?><li><a href="<?php echo $this->url(array('module' => 'users', 'controller' => 'admin', 'action' => 'rights'), null, true); ?>">&raquo; ACl Drepturi</a></li><?php }?>
				</ul>
			</li>
			<li>
				<a class="m30" href="#">Administrare module</a>
				<ul>
					<?php if ( $this->isAllowed('staticPages:admin:index') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'index'), null, true); ?>">&raquo; Listare pagini statice</a></li><?php }?>
					<?php if ( $this->isAllowed('index:admin') ){ ?><li><a href="<?php echo $this->url(array('module' => 'staticPages', 'controller' => 'admin', 'action' => 'edit'), null, true); ?>">&raquo; Adauga pagina</a></li><?php }?>
				</ul>
			</li>
		</ul>
	</div>
	<div id="content">
		<?php echo($this->layout()->content); ?>
	</div>
</div>
</body>
</html>

